﻿using System;
using OutlookContactsSync.Domain.Properties;
using OutlookContactsSync.Domain.Presenters;
using OutlookContactsSync.Domain.Views;
using OutlookContactsSync.Services;

namespace OutlookContactsSync.Presenters
{
    public class OutlookSyncStatusPresenter : IOutlookSyncStatusPresenter
    {
        private IOutlookSyncStatusView _view;

        public OutlookSyncStatusPresenter(IOutlookSyncStatusView view)
        {
            View = view;
        }

        public void InitView()
        {
            View.ShowForm();
        }

        #region IOutlookSyncMainPresenter Members

        public IOutlookSyncStatusView View
        {
            private get
            {
                Guard.ArgumentNotNull(_view, "view");
                return _view;
            }
            set
            {
                _view = value;
            }
        }

        #endregion
    }
}